package com.dkd.model.base.pojo;

import com.dkd.model.base.constants.PromptMessageEnum;

/**
 * 返回到前台的信息实体
 * @author Administrator
 *
 * @param <T>
 */
public class ReturnData<T> {
	//成功或失败
	private PromptMessageEnum standard;
	//返回的附加信息
	private String msg;
	//要返回的数据
	private T data;

	//无参构造
	public ReturnData() {}

	//有参构造
	public ReturnData(PromptMessageEnum standard, String msg){
		this.standard=standard;
		this.msg=msg;
	}
	
	//有参构造
	public ReturnData(PromptMessageEnum standard, String msg, T t){
		this.standard=standard;
		this.msg=msg;
		this.data=t;
	}

	public PromptMessageEnum getStandard() {
		return standard;
	}

	public void setStandard(PromptMessageEnum standard) {
		this.standard = standard;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
